<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="base/head::head"/>
<body>
<form id="form" method="post" style="padding: 10px; width: 600px; margin: 0px auto">
    <input name="formName" th:value="${formName}"/>
    <input name="tableName" th:value="${tableName}"/>
    <input name="id" th:value="${formId}"/>
    <div>
        <label for="code">编码:</label>
        <input class="easyui-textbox" type="text" style="width: 200px" id="code" name="code" data-options="required:true"/>
        <label for="title">标题:</label>
        <input class="easyui-textbox" type="text" style="width: 200px" id="title" name="title" data-options="required:true"/>
    </div>
    <div>
        <label for="dnum">数量:</label>
        <input class="easyui-numberspinner" type="text" id="dnum" name="dnum" data-options="required:true"/>
        <label for="create_time">创建时间:</label>
        <input class="easyui-datebox" type="text" id="create_time" name="create_time" data-options="required:true"/>
    </div>
    <div>
        <label for="comment">备注:</label>
        <input class="easyui-textbox" type="text" id="comment" name="comment" data-options="required:true"/>
    </div>
    <a id="btn-add" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="onSave()">新增</a>
</form>
<script type="text/javascript">
    function onSave(){
        Common.formSubmit();
    }
</script>
</body>
</html>